package cn.assumejson.springframework.aop.support;

import cn.assumejson.springframework.aop.Pointcut;
import org.aopalliance.aop.Advice;

import java.io.Serializable;

/**
 * @author gang.Li
 * @version 1.0
 * @since 1.0 2021/12/9 20:43
 */
public class DefaultPointcutAdvisor extends AbstractGenericPointcutAdvisor implements Serializable {

    private Pointcut pointcut = Pointcut.TRUE;

    public DefaultPointcutAdvisor(Pointcut pointcut, Advice advice) {
        this.pointcut = pointcut;
        setAdvice(advice);
    }

    @Override
    public Pointcut getPointcut() {
        return this.pointcut;
    }
}
